<style lang="scss" scoped>
	.content {
		width: 100%;
		background-color: white;

		padding: 30rpx 25rpx;
	}

	.list {


		align-items: flex-start;
		padding: 25rpx 0;

		.ipt {
			width: 550rpx;
			height: 200rpx;
			line-height: 40rpx;
		}
	}
</style>

<template>
	<view class="content">
		<view class="f34 bold" style="padding:0 30rpx;border-bottom: 1px solid #ccc;padding-bottom: 20rpx;">变更申请</view>

		<view class="list between-flex f28">
			<view class="align-flex gray ">
				<span class="red">*</span>变更原因
			</view>
			<textarea class="ipt" v-model="remark" placeholder-class="gray" placeholder="请填写" />
		</view>


		<view class="lbtn" @click="submit">提交</view>
	</view>
</template>

<script>
	export default {
		props: {
			itemCode: {
				default: ''
			}
		},
		data() {
			return {
				head: this.$head,
				remark: ''

			}
		},
		created() {

		},

		methods: {

			submit() {
				var _this = this
				this.$pop.ajaxPost("/busItemWorkReview/change/apply", {
					itemCode: this.itemCode,
					remark: this.remark
				}).then(res => {
					uni.hideLoading()
					if (res.code == 0) {
						_this.$msg(res.msg)
						_this.$emit('submit')
					} else {
						this.$msg(res.msg)
					}
				})

			},


		}
	}
</script>
